#ifndef SCHEDULEPLANNER_H
#define SCHEDULEPLANNER_H

#include <QWidget>
#include "Parser.h"
#include <vector>
#include <string>
#include <QString>

QT_BEGIN_NAMESPACE
class QPushButton;
class QTextEdit;
class QLineEdit;
QT_END_NAMESPACE

//! [0]
class SchedulePlanner : public QWidget
{
    Q_OBJECT

public:
    SchedulePlanner(QWidget *parent = 0);

    QString fromStringToQstring(string str);
    string fromQstringToString(QString qstr);

private slots:
    void on_Button_clicked();

private:
    QWidget* loadUiFile();
    void setup(QWidget*);

    Parser parser;
    OUTPUT_MESSAGE O;
    COMMAND anotherInput;
    bool noFileNameYet;

    QPushButton *ui_Button;
    QTextEdit *ui_textEdit;
    QLineEdit *ui_lineEdit;
    bool isFirstTime;
};

#endif
